package com.shuke.sk_worm.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shuke.sk_worm.Mapper.SkAccountInfoMapper;
import com.shuke.sk_worm.Mapper.SkShopInfoMapper;
import com.shuke.sk_worm.domain.SkAccountInfo;
import com.shuke.sk_worm.domain.SkShopInfo;
import com.shuke.sk_worm.service.SkAccountInfoService;
import com.shuke.sk_worm.service.SkShopInfoService;
import com.shuke.sk_worm.vo.ShopInfoListVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SkAccountInfoServiceImpl extends ServiceImpl<SkAccountInfoMapper, SkAccountInfo>
    implements SkAccountInfoService {

    @Autowired
    private SkAccountInfoMapper skAccountInfoMapper;

    /**
     * 获取店铺下面的子账号信息
     * @param shopIds
     * @return
     */
    @Override
    public List<SkAccountInfo> findAccountByShopId(List<Long> shopIds){
        return skAccountInfoMapper.findAccountByShopId(shopIds);
    }

    @Override
    public List<SkAccountInfo> getAccountByShopId(Long shopId){
        return skAccountInfoMapper.getAccountByShopId(shopId);
    }
}
